package com.boxuegu.domain;

import java.io.Serializable;

//用户类
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;
    private String password;
    private String name;
    private double money;

    public User() {
    }

    public User(String id, String password, String name, double money) {
        this.id = id;
        this.password = password;
        this.name = name;
        this.money = money;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return id + "\t" +
                password + "\t" +
                name + "\t\t" +
                money;
    }
}
